package com.sky.elk.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("test")
@Slf4j
public class TestController {

    @GetMapping("/test")
    @ResponseBody
    public String test(){
        log.info("日志输出，查看是否在日志文件中");
        return System.getProperty("gelf");
    }
}
